package com.example.rbacmanage.entity;

import com.example.rbacmanage.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
/**
 * 聊天实体对象
 *
 * @author zmd
 */
@Getter
@Setter
public class Chat extends BaseEntity {

    private static final long serialVersionUID = 1L;

        /**
         * 系统用户id
         */
    private Long systemUserId;
        /**
         * 小程序用户id
         */
    private Long minappUserId;
        /**
         * 消息
         */
    private String msg;
        /**
         * 消息类型
         */
    private String msgType;
        /**
         * 发送角色0: 系统用户 1：小程序用户
         */
    private Integer sendRole;
        /**
         * 是否已读
         */
    private String read;

    private Long goodsId;
    private Long orderId;
    //咨询对象：0：商品 1：订单 2:店铺
    private String chatObj;

    private String avatar;
    private String nickName;
    private String lastMsg;
    private Boolean noRead;
    private Long shopId;
    private List<Long> systemUserIds;
    private String goodsName;
    private String shopName;
    private String orderNumber;
    private Boolean joined;
    private Long joinedId;
    private String shopCover;
}
